homeTeam

  • function
 

Informs Bookshelf.js that the homeTeam property will be a Team model with an id that matches the homeTeamId specified in the query.

game.homeTeam()

Informs Bookshelf.js that the homeTeam property will be a Team model with an id that matches the homeTeamId specified in the query.